<%@ page import="com.Bean.Server" %>
<%@ page import="java.util.Set" %>
<%@ page import="com.Util.ServerDao" %>
<%@ page import="net.sf.json.JSONObject" %><%--
  Created by IntelliJ IDEA.
  User: root
  Date: 6/24/19
  Time: 8:39 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>serverdao</title>
</head>
<body>
<%
    Set<Server> serverSet= ServerDao.selectServerByUser("a");
    for(Server server: serverSet)
    {
        JSONObject jb = JSONObject.fromObject(server);
        String tojson = jb.toString();
%>
    <%=tojson%></br>
<%=server.getUsername()%>|<%=server.getIpv4()%></br>
<%

    }

%>

</body>
</html>
